<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>    
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<h1>Users List</h1>

	<table border="1" width="90%">
		<tr>
			<th>Id</th>
			<th>Name</th>
			<th>Password</th>
			<th>Email</th>
			<th>Sex</th>
			<th>Country</th>
			<th>Edit</th>
			<th>Delete</th>
		</tr>
		<c:forEach var="employee" items="${employees }">
		<tr>
			<td>${employee.id }</td>
			<td>${employee.name }</td>
			<td>${employee.password }</td>
			<td>${employee.email }</td>
			<td>${employee.sex }</td>
			<td>${employee.country }</td>
			<td><a href="editform/${employee.id }">Edit</a></td>
			<td><a href="deleteemp/${employee.id }">Delete</a></td>
		</tr>
		</c:forEach>
	</table>
	<a href="addform">Add Employee</a>
</body>
</html>
